/**
 * @description
 * 单例模式基类
 */
class SingtonClass {
    static getInstance<T extends {}>(this: new () => T): T {
        if (!(<any>this).instance) {
            (<any>this).instance = new this();
        }
        return (<any>this).instance;
    }
}

export let SingletonMgr = SingtonClass;